Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pam): use environ variable when getenv doesn't work #903

Open
wants to merge 1 commit into
base: beta
Choose a base branch
from

Conversation

saidsay-so
Copy link
Collaborator

@saidsay-so saidsay-so commented Apr 10, 2024

On some programs like sudo, getenv doesn't return the environment variable value.
We check the char **environ variable also to not miss those values.

Close #902

On some programs like sudo, getenv doesn't return the environment variable value.
@principis
Copy link
Contributor

This doesn't really make sense to me. Why is it that environ may contain variables that getenv doesn't return? It should be the same.

@saidsay-so
Copy link
Collaborator Author

This doesn't really make sense to me. Why is it that environ may contain variables that getenv doesn't return? It should be the same.

Frankly I don't know myself, I wasn't thinking that it was possible but I was able to reproduce the bug as it was initially reported and the fix works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SSH_CONNECTION security issue is back
2 participants